<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt-br"  
       xmlns:ui="http://java.sun.com/jsf/facelets"  
       xmlns:h="http://java.sun.com/jsf/html"  
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:g="http://www.gmvf.com/jsf">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title><ui:insert name="titulo">Agenda - Cid 40</ui:insert></title>
</head>
<body id="body">
	<h:form>
		<h:commandButton value="Novo" action="#{TesteBean.novo}"/>
		<g:tabela binding="dataTable" lista="usuarios" var="usuario" backingBean="#{TesteBean}" campos="nome,data,dataHora,ativo"/>
	</h:form>
	<ui:include src="/novoPainel.xhtml" />
	
	<rich:modalPanel autosized="true" id="usuarioPanelView">
		<h:form>
			<rich:panel>
				<h:outputText value="#{TesteBean.entity.nome}" />
				<h:outputText value="#{TesteBean.entity.data}" >
					<f:convertDateTime pattern="dd/MM/yyyy" timeZone="America/Fortaleza"/>
				</h:outputText>
			</rich:panel>
			<a4j:commandButton immediate="true" value="Fechar" onclick="Richfaces.hideModalPanel('usuarioPanelView');"/>
		</h:form>
	</rich:modalPanel>
</body>
</html>
